package com.situ.spring.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor

public class Student {
    private Integer id;
    private String name;
    private Integer age;
    private String gender;
    private Banji banji;

    public Student(Integer id, String name, Integer age, String gender, Banji banji) {
        System.out.println("Student.Student2");
        this.id = id;
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.banji = banji;
    }

    public void setName(String name) {
        System.out.println("Student.setName" + name);
        this.name = name;
    }
}
